package com.himooc.jdk8.lambda;

import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

import org.junit.Test;

public class TestZonedDateTime {

	@Test
	public void testZonedDateTime() {
		ZonedDateTime dateTime = ZonedDateTime.now();
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy HH:mm:ss");
		
		System.out.println(dateTime.format(formatter));
	}
	
}
